package com.ruoyi.finance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.mapper.AssetCategoriesMapper;
import com.ruoyi.finance.domain.AssetCategories;
import com.ruoyi.finance.service.IAssetCategoriesService;

/**
 * 资产类别设置Service业务层处理
 * 
 * @author 李伟
 * @date 2025-03-05
 */
@Service
public class AssetCategoriesServiceImpl implements IAssetCategoriesService 
{
    @Autowired
    private AssetCategoriesMapper assetCategoriesMapper;

    /**
     * 查询资产类别设置
     * 
     * @param id 资产类别设置主键
     * @return 资产类别设置
     */
    @Override
    public AssetCategories selectAssetCategoriesById(Long id)
    {
        return assetCategoriesMapper.selectAssetCategoriesById(id);
    }

    /**
     * 查询资产类别设置列表
     * 
     * @param assetCategories 资产类别设置
     * @return 资产类别设置
     */
    @Override
    public List<AssetCategories> selectAssetCategoriesList(AssetCategories assetCategories)
    {
        return assetCategoriesMapper.selectAssetCategoriesList(assetCategories);
    }

    /**
     * 新增资产类别设置
     * 
     * @param assetCategories 资产类别设置
     * @return 结果
     */
    @Override
    public int insertAssetCategories(AssetCategories assetCategories)
    {
        return assetCategoriesMapper.insertAssetCategories(assetCategories);
    }

    /**
     * 修改资产类别设置
     * 
     * @param assetCategories 资产类别设置
     * @return 结果
     */
    @Override
    public int updateAssetCategories(AssetCategories assetCategories)
    {
        return assetCategoriesMapper.updateAssetCategories(assetCategories);
    }

    /**
     * 批量删除资产类别设置
     * 
     * @param ids 需要删除的资产类别设置主键
     * @return 结果
     */
    @Override
    public int deleteAssetCategoriesByIds(Long[] ids)
    {
        return assetCategoriesMapper.deleteAssetCategoriesByIds(ids);
    }

    /**
     * 删除资产类别设置信息
     * 
     * @param id 资产类别设置主键
     * @return 结果
     */
    @Override
    public int deleteAssetCategoriesById(Long id)
    {
        return assetCategoriesMapper.deleteAssetCategoriesById(id);
    }
}
